<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<qscms:resume_show 列表名="info" 简历id="$_GET['id']"/>
	<include file="public:meta" />
	<link href="../public/css/common.css" rel="stylesheet" type="text/css" />
	<link href="../public/css/common_ajax_dialog.css" rel="stylesheet" type="text/css" />
	<link href="__RESUME__/default/css/resume.css" rel="stylesheet" type="text/css" />
	<style media="print" type="text/css"> 
	.noprint{visibility:hidden} 
	</style>
</head>
<body>
<div class="noprint">
<include file="public:header" />
</div>
<div class="rshow" id="content">
  <div class="l">
    <div class="main">
	<!--基本资料 -->
	<div class="info">
	  <div class="inl">
  		  <div class="pic"><img src="{$info['photosrc']}" /></div>
	  </div>
	   <div class="inr">
   		  <div class="rtime">更新时间：{$info['refreshtime_cn']}</div>
			<div class="name_box">
				<div class="name">{$info['fullname']}</div>
				<if condition="$info['is_audit_mobile'] eq 1">
					<div class="source">
						手机已认证
						<if condition="$info['resume_from_pc'] eq 0">
							<span>(此简历发布自手机端)</span>
						</if>
					</div>
				</if>
				<if condition="$info['strong_tag']">
					<div class="tag_cell_group">
						<div class="tag_cell"><span>{$info['strong_tag']}</span></div>
						<div class="clear"></div>
					</div>
				</if>
				<div class="clear"></div>
			</div>
	      <div class="txt">
	      {$info['sex_cn']}<span>|</span>
	      {$info['age']}岁<span>|</span>
	      {$info['education_cn']}<span>|</span>
	      {$info['experience_cn']}工作经验
	      <notempty name="info['height']">
	      <span>|</span>身高{$info['height']}CM
	      </notempty>
	      <notempty name="info['marriage_cn']">
	      <span>|</span>{$info['marriage_cn']}
	      </notempty>
	      <notempty name="info['major_cn']">
	      <span>|</span>{$info['major_cn']}
	      </notempty>
	      </div>
		  <!--如果有标签就显示 -->
		  <if condition="$info['tag_cn']">
		  <div class="txt">
              <div class="for_address substring">现居住：{$info.residence|default="保密"}</div>
              <notempty name="info['householdaddress']"><div class="for_address substring">户籍：{$info['householdaddress']}</div></notempty>
              <div class="clear"></div>
          </div>
		   <div class="lab">
		   <volist name="info['tag_cn']" id="vo">
		   	 <div class="las">{$vo}</div>
		   	 </volist>
			 <div class="clear"></div>
		   </div>
		   <else />
		    <!--如果没有标签就显示 -->
			<div class="txt">户籍：{$info.householdaddress|default="保密"}</div>
			<div class="txt">现居住：{$info['residence']}</div>
		   </if>
	   </div>
	   <div class="clear"></div>
	</div>
 
<!--求职意向 -->
<div class="items">
  <div class="tit">求职意向</div>
  <div class="intention">
    <span> 期望职位：</span>{$info['intention_jobs']}<br />
    <span> 期望行业：</span><if condition="$info['trade_cn']">{$info['trade_cn']}<else />不限</if><br />
    <span> 期望薪资：</span>{$info['wage_cn']}<u>|</u>想在{$info['district_cn']}工作<br />  
	 <span> 求职状态：</span>{$info['current_cn']}<br /> 
	</div>
  <div class="contact">
  	
  	<if condition="$info['telephone']">
    <div class="it tel">{$info['telephone']}</div>
    </if>
    <if condition="$info['email']">
	<div class="it email">{$info['email']}</div>
	</if>
	
	<div class="clear"></div>
	
  </div>
</div>
	  <!--自我描述 -->
	  <if condition="$info['specialty']">
		  <div class="items">
			  <div class="tit t5">自我描述</div>
			  <div class="evaluate">{$info['specialty']}</div>
		  </div>
	  </if>
<if condition="$info['education_list']">
<!--教育经历 -->
<div class="items">
  <div class="tit t2">教育经历</div>
  <volist name="info['education_list']" id="vo">
  <div class="edu">
  		<div class="td1">
		{$vo['startyear']}-{$vo['startmonth']} 
		<eq name="vo['todate']" value="1">
		至今
		<else />
		至 {$vo['endyear']}-{$vo['endmonth']} 
		</eq>
		<br />
		<span class="cout">[{$vo['duration']}]</span>
		</div>
		<div class="td2 font_blue">{$vo['education_cn']}<span>|</span>{$vo['school']}<span>|</span>{$vo['speciality']}</div>
		<div class="clear"></div>
  </div>
  </volist>
</div>
</if>
<if condition="$info['work_list']">
<!--工作经历 -->
<div class="items">
  <div class="tit t3">工作经历<span>(TA工作了{$info['work_duration']}，共做了{$info['work_count']}份工作)</span></div>
  <volist name="info['work_list']" id="vo">
  <div class="jobs">
  		<div class="td1">
		{$vo['startyear']}-{$vo['startmonth']} 
		<eq name="vo['todate']" value="1">
		至今
		<else />
		至 {$vo['endyear']}-{$vo['endmonth']} 
		</eq>
		<br />
		<span class="cout">[{$vo['duration']}]</span>
		</div>
		<div class="td2">
<span  class="font_blue">{$vo['jobs']}</span><span class="line">|</span><span class="font_blue">{$vo['companyname']}</span>
<div class="txt"><strong>工作职责：</strong>{$vo['achievements']}</div>
</div>
		<div class="clear"></div>
  </div>
  </volist>
   
</div>
</if>
<!-- -->
<if condition="$info['training_list']">
<!--培训经历 -->
<div class="items">
  <div class="tit t4">培训经历</div>
  <volist name="info['training_list']" id="vo">
  <div class="tra">
  		<div class="td1">
		{$vo['startyear']}-{$vo['startmonth']} 
		<eq name="vo['todate']" value="1">
		至今
		<else />
		至 {$vo['endyear']}-{$vo['endmonth']} 
		</eq>
		<br />
		<span class="cout">[{$vo['duration']}]</span>
		</div>
		<div class="td2">
<span  class="font_blue">{$vo['course']}</span><span class="line">|</span><span class="font_blue">{$vo['agency']}</span>
<div class="txt"><strong>培训内容：</strong>{$vo['description']}</div>
</div>
		<div class="clear"></div>
  </div>
  </volist>
  
</div>
</if>
<!-- -->
<if condition="$info['credent_list']">
<!--获得证书 -->
<div class="items">
  <div class="tit t6">获得证书</div>
   
    <div class="certificate">
	    <volist name="info['credent_list']" id="vo">
		<div class="cer"><span>{$vo['year']}-{$vo['month']}</span>{$vo['name']}</div>
		</volist>
		<div class="clear"></div>
	</div>
</div>
</if>
<if condition="$info['language_list']">
<!--语言能力 -->
<div class="items">
  <div class="tit t7">语言能力</div>
  <div class="language">
  	<volist name="info['language_list']" id="vo">
  		<div class="lang"><span>{$vo['language_cn']}</span>{$vo['level_cn']}</div>
  	</volist>
	<div class="clear"></div>
  </div>
</div>
</if>
<if condition="$info['img_list']">
<!--照片/作品 -->
<div class="items">
  <div class="tit t8">照片/作品</div>
  <div class="pic">
  	<volist name="info['img_list']" id="vo">
  		<div class="pli" title="{$vo['title']}"><a class="J_for_bigimg" href="javascript:;" data-src="{$vo['img']}"><img src="{$vo['img']}" border="0" height="100%" width="100%"></a></div>
  	</volist>
		<div class="clear"></div>
  </div>
</div>
</if>
<if condition="$info['word_resume']">
<!--附件简历 -->
<div class="items">
  <div class="tit t9">附件简历</div>
  <div class="word">
  	<div class="txt link_blue"><a href="<if condition="$info['show_contact']">{$info['word_resume']}<else/>javascript:;</if>">{$info['word_resume_title']}</a><neq name="info['preview']" value="1"><span>(获取简历联系方式以后方可下载)</span></neq></div>
  </div>
</div>
</if>
 <!--简历项目结束 -->
    </div>
  </div>
  <div id="navRight" class="noprint">
	  <div class="r">
		<div class="main">
		  
		  <div class="split"><div class="txt">操作</div></div>
		  <if condition="$info['label_resume'] eq 'apply' && C('visitor.utype') eq 1">
		  	<if condition="$info['label_id'] eq 0">
		  		<div class="cbtn label_resume" data="1" label_type="{$info['label_type']}">待沟通</div>
		  	</if>
		  	<if condition="$info['label_id'] eq 0 or $info['label_id'] eq 1">
		  		<div class="cbtn J_interview">面试邀请</div>
		  	</if>
		  	<if condition="$info['label_id'] eq 2">
		  		<div class="cbtn label_resume" data="3" label_type="{$info['label_type']}">待入职</div>
		  	</if>
		  	<if condition="$info['label_id'] eq 0 or $info['label_id'] eq 1 or $info['label_id'] eq 2">
		  		<div class="cbtn label_resume" data="4" label_type="{$info['label_type']}">不合适</div>
		  	</if>
		  	<if condition="$info['label_id'] neq 3">
		  		<div class="cbtn favor">加入人才库</div>
		  	</if>
		  		
		  </if>
		 
		 <div id="resume_doc" class="cbtn">导出Word简历</div>
		 
		  
		</div>
	  </div>
  </div>
  <div class="clear"></div>
</div>
<div class="down_resum_confirm_box"></div>
<div class="noprint">
<include file="Home@default/public/footer_min" />
</div>
<script type="text/javascript" src="../public/js/jquery.modal.dialog.js"></script>
<script type="text/javascript" src="../public/js/jquery.listitem.js"></script>
<script type="text/javascript" src="../public/js/jquery.dropdown.js"></script>
<script type="text/javascript" src="../public/js/laydate/laydate.js"></script>
<script type="text/javascript" src="../public/js/personal/jquery.fixed.sidebar.js"></script>
<script type="text/javascript">
	$(document).ready(function(){
		// 右侧固定侧边栏
		$('#navRight').stickySidebar({
			sidebarTopMargin: 0,
			footerThreshold: 100
		});

		var isVisitor = "{$visitor['uid']}";
		// 点击显示作品大图
		$('.J_for_bigimg').die().live('click', function(event) {
			var src = $(this).data('src');
			var qsDialog = $(this).dialog({
	    		title: '照片作品',
	    		innerPadding: false,
	    		border: false,
				content: '<div style="max-width: 900px;max-height: 600px;"><img style="max-width: 900px;max-height: 600px;" src="'+src+'" /></div>',
				showFooter: false
			});
		});
		$('#resume_doc').click(function(){
			if(!isVisitor){
				$.getJSON("{:U('AjaxCommon/get_login_dig')}", function(result){
		            if(result.status==1){
	            		var qsDialogSon = $(this).dialog({
	                        title: '会员登录',
							content: result.data.html,
							footer: false,
							border: false
						});
		    			qsDialogSon.setInnerPadding(false);
		            }else{
		            	qsDialog.hide();
						disapperTooltip('remind',result.msg);
		            }
		        });
		        return !1;
			}else{
				javascript:location.href='{:U('Resume/resume_doc',array('id'=>$info['id']))}';
			}
		});
		// 下载简历和获取联系方式点击事件绑定
		$(".J_downbtn").die().live('click',function(){
            var url = $(this).attr('url');
			var qsDialog = $(this).dialog({
				title: '下载简历',
        		loading: true,
				footer: false,
				header: false,
				border: false,
				backdrop: false
			});
			$.getJSON(url,function(result){
				if (eval(result.status)) {
					qsDialog.hide();
					var qsDialogSon = $(this).dialog({
						title: '下载简历',
						footer:false,
						content: result.msg
					});
				} else {
					if (eval(result.dialog)) {
						var loginUrl = "{:U('AjaxCommon/get_login_dig')}";
						$.getJSON(loginUrl, function(result){
				            if(result.status==1){
								qsDialog.hide();
			            		var qsDialogSon = $(this).dialog({
                                    title: '会员登录',
									content: result.data.html,
									footer: false,
									border: false
								});
				    			qsDialogSon.setInnerPadding(false);
				            } else {
				            	qsDialog.hide();
								disapperTooltip('remind',result.msg);
				            }
				        });
					} else {
						qsDialog.hide();
						disapperTooltip('remind',result.msg);
					}
				}
			});
		});
		
        // 发送面试邀请
        $('.J_interview').click(function(){
        	var id = "{$info['id']}";
        	var qsDialog = $(this).dialog({
		        title: '发送面试邀请',
        		loading: true,
				footer: false,
				header: false,
				border: false,
				backdrop: false
			});
            $.getJSON("{:U('Company/jobs_interview_add')}",{id:id},function(result){
                if(result.status == 1){
                	qsDialog.hide();
                	var qsDialogSon = $(this).dialog({
		        		title: '发送面试邀请',
						content: result.data,
						yes: function() {
							var notesVal = $.trim($('input[name="notes"]').val());
							if (notesVal.length > 40) {
								$('input[name="notes"]').focus();
								disapperTooltip('remind','最多输入40个字');
								return false;
							}
							$('.J_btnyes').val('发送中...');
							$.post("{:U('Company/jobs_interview_add')}",$('#J_interviewWrap').serialize(),function(result){
		                        if(result.status == 1){
		                        	qsDialogSon.hide();
		                            disapperTooltip('success',result.msg);
		                        } else {
		                        	$('.J_btnyes').val('确定');
		                            disapperTooltip('remind',result.msg);
		                        }
		                    },'json');
						}
					});
					qsDialogSon.setCloseDialog(false);
					// 时间插件
                    laydate({
                        elem: '#date',
                        min: laydate.now()
                    })
                } else {
                    if (result.dialog==1) {
						var loginUrl = "{:U('AjaxCommon/get_login_dig')}";
						$.getJSON(loginUrl, function(result){
				            if(result.status==1){
		                    	qsDialog.hide();
		                		var qsDialogSon = $(this).dialog({
                                    title: '会员登录',
									content: result.data.html,
									footer: false,
									border: false
								});
				    			qsDialogSon.setInnerPadding(false);
				            } else {
				            	qsDialog.hide();
				                disapperTooltip('remind',result.msg);
				            }
				        });
                	} else {
                		qsDialog.hide();
						disapperTooltip('remind',result.msg);
                	}
                }
            });
        });
			

		$(".label_resume").live('click',function(){
			var thisObj = $(this);
			$(".label_resume").removeClass('select');
			thisObj.addClass('select');
			var label = thisObj.attr('data');
			var label_type = thisObj.attr('label_type');
			var url = "{:U('AjaxCompany/resume_label')}";
			var did = "{$info['did']}";
			$.getJSON(url,{did:did,label:label,label_type:label_type},function(result){
				if(result.status == 1){
					disapperTooltip('success',result.msg);
				}else{
					disapperTooltip('remind',result.msg);
				}
			});
		});

		// 加入人才库
		$(".favor").die().live('click',function(){
			var url = "{:U('AjaxCompany/resume_favor')}";
			var rid = "{$info['id']}";
			if ((isVisitor > 0)) {
				$.getJSON(url,{rid:rid},function(result){
					if(result.status==1){
						disapperTooltip('success',result.msg);
					} else {
						disapperTooltip('remind',result.msg);
					}
				});
			} else {
				var qsDialog = $(this).dialog({
	        		loading: true,
					footer: false,
					header: false,
					border: false,
					backdrop: false
				});
				var loginUrl = "{:U('AjaxCommon/get_login_dig')}";
				$.getJSON(loginUrl, function(result){
		            if(result.status==1){
						qsDialog.hide();
	            		var qsDialogSon = $(this).dialog({
                            title: '会员登录',
							content: result.data.html,
							footer: false,
							border: false
						});
		    			qsDialogSon.setInnerPadding(false);
		            } else {
		            	qsDialog.hide();
		                disapperTooltip('remind',result.msg);
		            }
		        });
			}
		});
		
		// 投诉简历
		$("#report").die().live('click', function(){
			var resume_id = "{$info['id']}";
			var url = "{:U('AjaxCompany/report_resume')}";
			var qsDialog = $(this).dialog({
        		loading: true,
				footer: false,
				header: false,
				border: false,
				backdrop: false
			});
			$.getJSON(url,{resume_id:resume_id},function(result){
				if(result.status==1){
					qsDialog.hide();
					var qsDialogSon = $(this).dialog({
						title:'举报简历',
		        		content: result.data,
						footer: false
					});
				} else {
					if (eval(result.dialog)) {
						var loginUrl = "{:U('AjaxCommon/get_login_dig')}";
						$.getJSON(loginUrl, function(result){
				            if(result.status==1){
								qsDialog.hide();
			            		var qsDialogSon = $(this).dialog({
                                    title: '会员登录',
									content: result.data.html,
									footer: false,
									border: false
								});
				    			qsDialogSon.setInnerPadding(false);
				            } else {
				            	qsDialog.hide();
				                disapperTooltip('remind',result.msg);
				            }
				        });
					} else {
						qsDialog.hide();
						disapperTooltip('remind',result.msg);
					}
				}
			});
		});
	});
</script>
</body>
</html>